let str = 'name=zhangsan&age=10'

let querystring = require('querystring')

let obj = querystring.parse(str);

console.log(obj);

let obj1 = {
    b: 1,
    a: 2,
    c: 3
}
let str1 = querystring.stringify(obj1);
console.log(str1);

console.log(querystring.escape(str))